﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EPiServer.Core;

namespace EPiServer.Models
{
    public class StartPage : BaseModel
    {
        public override Models.StartPage Start
        { 
            get
            {
                return this;
            }
        }

        public string Logotype { get; set; }
        public PageReference PrivacyPage { get; set; }
        public PageReference ContactPage { get; set; }
        public PageReference SitemapPage { get; set; }

        public PageReference NewsRoot { get; set; }
        public int NewsCount { get; set; }
        [PopulateFrom("NewsRoot", "NewsCount")]
        public List<BaseModel> NewsList { get; set; }
        public string Image { get; set; }

        public PageReference EventsRoot { get; set; }
        public int EventsCount { get; set; }
        [PopulateFrom("EventsRoot", "EventsCount")]
        public List<BaseModel> EventList { get; set; }
        public StartPage()
        {
            //NewsList = new List<BaseModel>();
            //EventList = new List<BaseModel>();
        }
    }
}